package com.cswnode.Enums;

/**
 * @author csw
 * @create 2020/9/22 20:50
 */

public enum ResponseEnum {
    ERROR(1,"服务器异常"),
    USERNAME_PASSWORD_ERROR(2,"用户名密码错误"),
    SUCCESS_LOGIN(3,"登陆成功"),
    SUCCESS_LOGOUT(4,"注销成功"),
    ;
    Integer code;
    String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
